/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.dp.vo;

import java.io.Serializable;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author wyr
 */
@Entity
@Table(name = "news_mtvrule")
//@NamedQueries({@NamedQuery(name = "NewsMtvrule.findAll", query = "SELECT n FROM NewsMtvrule n"), @NamedQuery(name = "NewsMtvrule.findByClientua", query = "SELECT n FROM NewsMtvrule n WHERE n.clientua = :clientua"), @NamedQuery(name = "NewsMtvrule.findByMusicformat", query = "SELECT n FROM NewsMtvrule n WHERE n.musicformat = :musicformat"), @NamedQuery(name = "NewsMtvrule.findByVideoformat", query = "SELECT n FROM NewsMtvrule n WHERE n.videoformat = :videoformat")})
public class NewsMtvrule implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "clientua")
    private String clientua;
    @Column(name = "musicformat")
    private String musicformat;
    @Column(name = "videoformat")
    private String videoformat;
    @Column(name = "imageformat")
    private String imageformat;
    @Column(name = "news_ringtones_musicformat")
    private String news_ringtones_musicformat;
    @Column(name = "news_videoformat")
    private String news_videoformat;
    
    public NewsMtvrule() {
    }

    public NewsMtvrule(String clientua) {
        this.clientua = clientua;
    }

    public String getClientua() {
        return clientua;
    }

    public void setClientua(String clientua) {
        this.clientua = clientua;
    }

    public String getMusicformat() {
        return musicformat;
    }

    public void setMusicformat(String musicformat) {
        this.musicformat = musicformat;
    }

    public String getVideoformat() {
        return videoformat;
    }

    public void setVideoformat(String videoformat) {
        this.videoformat = videoformat;
    }

    
    public String getImageformat() {
		return imageformat;
	}

	public void setImageformat(String imageformat) {
		this.imageformat = imageformat;
	}


	public String getNews_ringtones_musicformat() {
		return news_ringtones_musicformat;
	}

	public void setNews_ringtones_musicformat(String news_ringtones_musicformat) {
		this.news_ringtones_musicformat = news_ringtones_musicformat;
	}

	public String getNews_videoformat() {
		return news_videoformat;
	}

	public void setNews_videoformat(String news_videoformat) {
		this.news_videoformat = news_videoformat;
	}

	@Override
    public int hashCode() {
        int hash = 0;
        hash += (clientua != null ? clientua.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof NewsMtvrule)) {
            return false;
        }
        NewsMtvrule other = (NewsMtvrule) object;
        if ((this.clientua == null && other.clientua != null) || (this.clientua != null && !this.clientua.equals(other.clientua))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.dp.vo.NewsMtvrule[clientua=" + clientua + "]";
    }

}
